<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-5-8
 * Time: 下午11:40
 */

class Madvertisepic extends CI_Model{
    function __construct(){
        parent::__construct();
    }

    function getAdvertisePic($id,$order)
    {
        $sql = "select * from `tbadvertise_pic` where `advertise_id`=? order by $order";
        $query = $this->db->query($sql,array($id));
        return $row = $query->result();

    }

}